import {FieldBase} from './FieldBase';

export class FormField implements FieldBase {
  formId: number;
  id: string;
  name: string;
  type: string;
  required: boolean;
  sort: number;
  isMultiple: boolean;
  optionSource: string;
  options: string;
  placeholder: string;
  validators: string;
  labelWidth: number;
  controlWidth: number;
  emptyHidden: boolean;
  value: any;

  constructor(formId: number,
              id: string,
              name: string,
              type: string,
              required: boolean,
              sort: number,
              isMultiple: boolean,
              optionSource: string,
              options: string,
              placeholder: string,
              validators: string,
              labelWidth: number,
              controlWidth: number,
              emptyHidden: boolean) {
    this.formId = formId;
    this.id = id;
    this.name = name;
    this.type = type;
    this.required = required;
    this.sort = sort;
    this.isMultiple = isMultiple;
    this.optionSource = optionSource;
    this.options = options;
    this.placeholder = placeholder;
    this.validators = validators;
    this.labelWidth = labelWidth;
    this.controlWidth = controlWidth;
    this.emptyHidden = emptyHidden;
  }

}
